package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class WrapTest2 {
    public static void main(String[] args) {
        //二进制
        int i=-1;
        String s = Integer.toBinaryString(i);
        System.out.println(s);
        System.out.println(Integer.toHexString(i));
        //  & | ~  ^
        int a=23,b=14;
        // 10111  1110
        int c1=a&b;//6
        int c2=a|b;//31
        int c3=~a;//
        int c4=a^b;
        System.out.printf("c1=%d,c2=%d,c3=%d,c4=%d\n",c1,c2,c3,c4);
    }
}
